<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>sfsad </title>
    {include file="public/key" /}
    <style>
        .x-body>.layui-table>thead>tr>th{
            text-align:center;
        }
    </style>
</head>
<body>
<div class="x-nav">
    <span class="layui-word-aux"> 首页 / 区域管理</span>
    <a class="layui-btn layui-btn-small mt5 fr" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon">&#xe669;</i></a>
    <a class="layui-btn layui-btn-radius layui-btn-warm mt5 mr10 fr" href="/Admin/Product/productAdd?pro_type=3">新增区域</a>
</div>

<div class="x-body">
    <form action="" class="layui-form">
        <div class="layui-input-inline">
            <select name="quiz1">
                <option value="">请选择省</option>
                <option value="浙江" selected="">浙江省</option>
                <option value="你的工号">江西省</option>
                <option value="你最喜欢的老师">福建省</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select name="quiz1">
                <option value="">请选择省</option>
                <option value="浙江" selected="">浙江省</option>
                <option value="你的工号">江西省</option>
                <option value="你最喜欢的老师">福建省</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select name="quiz1">
                <option value="">请选择省</option>
                <option value="浙江" selected="">浙江省</option>
                <option value="你的工号">江西省</option>
                <option value="你最喜欢的老师">福建省</option>
            </select>
        </div>
        <button class="layui-btn layui-btn-normal"  lay-submit="" lay-filter="sreach" style="margin-right: 40px;"><i class="layui-icon">&#xe615;</i></button>
    </form>
    <div class="layui-row">
        <table class="layui-table">
            <thead>
            <tr>
                <th>区域ID</td>
                <th>区域名称</td>
                <th>区域状态</td>
                <th>区域级别</td>
                <th>操作</td>
            </tr>
            </thead>

            <tbody style="text-align:center">
            {foreach name="admin_city_list" item="admin_city_var"}
            <tr>
                <td>{$admin_city_var.cid}</td>
                <td>{$admin_city_var.name}</td>
                <td>
                    {if $admin_city_var.status}<a class="layui-icon" style="color: #66CD00;">&#xe605;</a>{else /}<a class="layui-icon" style="color: #EE0000;">&#x1006;</a>{/if}
                </td>
                <td>
                    {switch name="admin_city_var.level" }
                        {case value="1"}省级{/case}
                        {case value="2"}市级{/case}
                        {case value="3"}县级{/case}
                    {/switch}
                </td>
                <td>
                    <a class="layui-btn layui-btn-normal layui-btn-xs mb5" href="" >区域详情</a>
                    <a class="layui-btn layui-btn-normal layui-btn-xs mb5" href="" >设置管理员</a>
                    <a class="layui-btn layui-btn-danger layui-btn-xs mb5" href="">删除</a>
                </td>
            </tr>
            {/foreach}
            <tr>
                <td colspan="5">
                    <div class="page">
                        {$page}
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<script>
    //一般直接写在一个js文件中
    layui.use(['form'], function(){
        var form = layui.form();


    });
</script>
</body>

</html>